﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConferenceSystem
{
    public class cl_0423_Department : cl_0423_SystemSubject, cl_0423_MeetingObserver
    {
        private string name;
        public cl_0423_Department(string name)
        {
            this.name = name;
        }

        public override void notice()
        {
            Console.WriteLine("周日，部门收到上级传到的加班通知");
            for(int index = 0; index < employees.Count; index++)
            {
                ((cl_0423_EmployeeObserver)employees[index]).Overtime_notice();
            }
        }

        public void Meeting_message()
        {
            Console.WriteLine(this.name+"——收到会议消息");
        }
    }
}